package com.cinc.mdm.modules.bom.vo;

import java.util.List;
import com.cinc.mdm.modules.bom.entity.MdmBom;
import com.cinc.mdm.modules.bom.entity.MdmBomDetail;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: bom主记录
 * @Author: jeecg-boot
 * @Date:   2021-10-24
 * @Version: V1.0
 */
@Data
@ApiModel(value="mdm_bomPage对象", description="bom主记录")
public class MdmBomPage {

	/**
	 * 主表信息、物料信息、从表信息
	 */
	/**主键*/
	@ApiModelProperty(value = "主键")
	private java.lang.String id;
	/**物料ID*/
	@ApiModelProperty(value = "物料ID")
	private java.lang.String materialId;
	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
	@ApiModelProperty(value = "物料编号")
	private java.lang.String materialCode;
	/**物料描述*/
	@Excel(name = "物料描述", width = 15)
	@ApiModelProperty(value = "物料描述")
	private java.lang.String materialDesc;
	/**单位*/
	@Excel(name = "单位", width = 15,dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
	@Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
	@ApiModelProperty(value = "单位")
	private java.lang.String materialUnitCode;
	/**工厂*/
	@Excel(name = "工厂", width = 15, dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
	@Dict(dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
	@ApiModelProperty(value = "工厂")
	private java.lang.String factory;
	/**生效日期*/
	@Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "生效日期")
	private java.util.Date effectiveDate;
	/**物料类型ID*/
	@Dict(dictTable = "mdm_material_type", dicText = "material_type_name", dicCode = "id")
	@Excel(name = "物料类型", width = 15, dictTable = "mdm_material_type", dicText = "material_type_name", dicCode = "id")
	@ApiModelProperty(value = "物料类型ID")
	private java.lang.String materialTypeId;

	@ApiModelProperty(value = "物料类型编码")
	private java.lang.String materialTypeCode;
	/**物料来源*/
	@Excel(name = "物料来源", width = 15, dicCode = "mdm_material_source")
	@Dict(dicCode = "mdm_material_source")
	@ApiModelProperty(value = "物料来源")
	private java.lang.String materialSourceCode;
	/**规格*/
	@Excel(name = "规格", width = 15)
	@ApiModelProperty(value = "规格")
	private java.lang.String materialSpec;
	/**材质*/
	@Excel(name = "材质", width = 15)
	@ApiModelProperty(value = "材质")
	private java.lang.String materialMaterial;
	/**图号*/
	@Excel(name = "图号", width = 15)
	@ApiModelProperty(value = "图号")
	private java.lang.String materialGraphNo;
	/**版本编号*/
	@ApiModelProperty(value = "版本编号")
	private java.lang.String versionNum;
	/**工位编号*/
	@ApiModelProperty(value = "工位编号")
	private java.lang.String stationNum;
	/**失效日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "失效日期")
	private java.util.Date expiryDate;

	/**创建人*/
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "创建人")
	private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
	private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
	private java.util.Date updateTime;
	/**启用标志*/
	@ApiModelProperty(value = "启用标志")
	private java.lang.String enableFlag;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private java.lang.String sysOrgCode;
	/**租户ID*/
	@ApiModelProperty(value = "租户ID")
	private java.lang.Integer tenantId;

	@ApiModelProperty(value = "租户ID")
	private java.lang.String levelType;

	@ApiModelProperty(value = "物料编号列表")
	private List<String> materialCodeList;

	@ApiModelProperty(value = "工厂列表")
	private List<String> factoryList;

	@ApiModelProperty(value = "bom明细删除ID列表")
	private List<String> mdmBomDetailDeleteIdList;

	@ApiModelProperty(value = "bom明细新增ID列表")
	private List<String> mdmBomDetailAddIdList;

	@ExcelCollection(name="bom明细")
	@ApiModelProperty(value = "bom明细")
	private List<MdmBomDetail> mdmBomDetailList;

}
